#ifndef MINI2440OUTSIDEDEVICECONTROLFORM_H
#define MINI2440OUTSIDEDEVICECONTROLFORM_H

#include <common.h>
#include "../Model/mini2440Capturethread.h"
#include "../Model/mini2440Gpio.h"

namespace Ui {
    class mini2440OutsideDeviceControlForm;
}

class mini2440OutsideDeviceControlForm : public QWidget {
    Q_OBJECT
public:
    mini2440OutsideDeviceControlForm(QWidget *parent = 0);
    ~mini2440OutsideDeviceControlForm();
signals:
    void openDoor();
    void closeDoor();
    void stopRingTheBell();
protected:
    void changeEvent(QEvent *e);
    void closeEvent(QCloseEvent *event);
    void showEvent ( QShowEvent * event );
private:
    Ui::mini2440OutsideDeviceControlForm *ui;
    CaptureThread *t;

private slots:
    void on__btOpen_clicked();
    void on__btClose_clicked();
};

#endif // MINI2440OUTSIDEDEVICECONTROLFORM_H
